package com.bio.entity.product;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.bio.entity.attachemnt.BaseObjectAttachment;

@Entity
@Table(name = "table_product_product")
public class Product extends BaseObjectAttachment{

	private static final long serialVersionUID = -2191632555078540588L;

	/**
	 * 发布者名称
	 */
	private String publisherName;
	
	/**
	 * 发布者ID
	 */
	private Long publisherId;
	
	/**
	 * 名称
	 */
	private String name;
	
	/**
	 * 简述
	 */
	private String brief;
	
	/**
	 * 价格
	 */
	private BigDecimal price;
	
	/**
	 * 是否可以积分兑换
	 */
	private int exchange;
	

	/**
	 * 积分兑换值
	 */
	private int points;
	
	/**
	 * 热门
	 */
	private int hot;
	
	
	@Column(name="price")
	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	@Column(name="exchange")
	public int getExchange() {
		return exchange;
	}

	public void setExchange(int exchange) {
		this.exchange = exchange;
	}

	@Column(name="points")
	public int getPoints() {
		return points;
	}

	public void setPoints(int points) {
		this.points = points;
	}


	@Column(name="publicher_name")
	public String getPublisherName() {
		return publisherName;
	}

	public void setPublisherName(String publisherName) {
		this.publisherName = publisherName;
	}

	@Column(name="publicher_id")
	public Long getPublisherId() {
		return publisherId;
	}

	public void setPublisherId(Long publisherId) {
		this.publisherId = publisherId;
	}

	@Column(name="name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name="brief")
	public String getBrief() {
		return brief;
	}

	public void setBrief(String brief) {
		this.brief = brief;
	}


	@Column(name="hot")
	public int getHot() {
		return hot;
	}

	public void setHot(int hot) {
		this.hot = hot;
	}

}
